String Utils
Functions
Encode the given byte array using base64 and return the result as a string.
Encode the given string as a (utf8) byte array and then encode that using base64 and return the result as a string. Note: Only available as of build 528
Return a String with the first letter capitalized.
Concatenate all of the strings in the given list with spaces between each but skipping null or empty strings. You can pass a List with entries such as "field1", null, "field3", "", "field4" and will get back "field1 field3 field4".
Concatenate all of the strings in the given list with spaces between each but skipping null or empty strings. You can pass a List with entries such as "field1", null, "field3", "", "field4" and will get back "field1 field3 field4". If the avoidRepeating flag is true then this will not add any fields that already exist in the combined string so far.
Combine the given base path and the given relative path, either or both of which may be empty. This is a basic concatenation with a slash in between non-empty paths. It does not handle parent path references such as ".."
Performs a conversion from the given string to an encoded version that can be used as a file/URL name. This is new as of Moneydance build 325.
Formats the given double 0..1.00 as a percentage with either zero (if an even percentage) or two decimal digits showing. If forceDecimal is true, digits after the decimal point will be displayed regardless of whether it is an even percentage or not.
Return a decimal number formatter that is appropriate for displaying the given amount. This will return a formatter with a smaller number of decimal places and less precision for very large values, and a formatter with higher precision (more decimal places) for very small numbers.
Returns the extension, if any, on the given file name. Returns an empty string if there was no extension and null if the given filename was null.
Convenience method that Returns the given string or the empty string if the given string is null
Returns true if the given parameter looks vaguely like a valid email address. No guarantees though.
Parse a fraction from a string - ie "1/5". Returns 1 if there was an error in the format
Returns the filename passed as argument without extension
Remove leading and trailing quotes or white space from a string
Strip all characters that should not appear in a filename (including path characters)